using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class forums_usercp : Controls.BasePageControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DAL.User currentUser = Managers.UserLoginManager.CurrentUser;
        if (currentUser != null)
        {
            if (!Page.IsPostBack)
            {
                Usercp1.CurrentUser = currentUser;
            }
        }
        else
        {
            HttpContext.Current.Response.Redirect("~/forums/default.aspx");
        }
    }

    public override void  UserLoggedOut(object sender, EventArgs e)
    {
        RedirectHome();
    }
}
